CMAKE_MINIMUM_REQUIRED(VERSION 3.1)
project(learn-cmake LANGUAGES CXX)
#设置c++标准
set(CMAKE_CXX_STANDARD 17)
#设置c++标准是否必须
set(CMAKE_CXX_STANDARD_REQUIRED ON)
#设置c++扩展是否开启
set(CMAKE_CXX_EXTENSIONS ON)
#设置输出目录
set(CMAKE_ARCHIVE_OUTPUT_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/lib)
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/bin)
set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_CURRENT_LIST_DIR}/bin)

add_subdirectory(src)
add_subdirectory(external)
